package com.youdoneed.common.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 文件信息类。
 */
@ApiModel("文件信息")
public class FileInfo {
    // 使用手动生成ID来给文件命名
    @ApiModelProperty("文件ID")
    private String fileId;

    @ApiModelProperty("文件名")
    private String name;

    @ApiModelProperty("格式后缀")
    private String format;

    @ApiModelProperty("上传时的原始文件名")
    private String originalName;

    @ApiModelProperty("文件URL")
    private String url;

    @ApiModelProperty("文件大小（字节）")
    private Long size;

    @ApiModelProperty("创建时间")
    private Date createTime;

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getOriginalName() {
        return originalName;
    }

    public void setOriginalName(String originalName) {
        this.originalName = originalName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}